<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
<h:head>
	<title>修改登录密码</title>
</h:head>
<ui:param name="bean" value="#{chgPasswordAction}" />
<h:body>
	<center>
		<h:form id="loginForm">
			<p:messages id="messages" showDetail="true" life="10000"/>	
			<p:panel header="修改登录密码">
				<h:panelGrid id="loginPanel" columns="2" cellpadding="5" style="margin: 0 auto;">
					<p:outputLabel value="用户名：" />
					<p:outputLabel id="username" value="#{bean.userName}"/>
					<p:outputLabel for="pwd0" value="输入旧密码" style="text-align:right" />
					<p:password size="32" id="pwd0" value="#{bean.oldPassword}"
						label="输入旧密码" feedback="true" required="true"	style="text-align:left" />
					<p:outputLabel for="pwd1" value="输入新密码" style="text-align:right" />
					<p:password size="32" id="pwd1" value="#{bean.newPassword}"
						match="pwd2" label="输入新密码" feedback="true" required="true"
						style="text-align:left" />
					<p:outputLabel for="pwd2" value="重复新密码" style="text-align:right" />
					<p:password size="32" id="pwd2" value="#{bean.newPassword}"
						label="重复密码" feedback="true" required="true"
						style="text-align:left" />
				</h:panelGrid>
				<br/>
				<p:commandButton action="#{bean.change()}" value="确认"	update="loginForm" ajax="true"/>
			</p:panel>
		</h:form>
	</center>
</h:body>
</html>
